package com.ty.user.starter.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户角色菜单
 * </p>
 *
 * @author minku
 * @since 2021-10-16
 */
@Getter
@Setter
@TableName("ty_permission")
@ApiModel(value = "Permission对象", description = "用户角色菜单")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("角色Id")
    @TableField("role_id")
    private Long roleId;

    @ApiModelProperty("用户Id")
    @TableField("menu_id")
    private Long menuId;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("创建用户Id")
    @TableField("create_user_id")
    private String createUserId;

    @ApiModelProperty("修改时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("修改用户Id")
    @TableField("update_user_id")
    private String updateUserId;


}
